import request from '@/utils/request';

//获取钱包
export const walletGet = (params: any) => {
    return request({
        url: '/app-api/pay/wallet/get',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//修改基本信息
export const userUpdate = (params: any) => {
    return request({
        url: '/app-api/member/user/update',
        method: 'PUT',
        body: params,
        hideLoading: false,
    });
};

//获取当前用户粉丝、关注、获赞数量
export const myFenCount = (params: any) => {
    return request({
        url: '/app-api/member/user/count',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};

//积分记录
export const scoreList = (params: any) => {
    return request({
        url: '/app-api/member/point/record/page',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};

//获得消息分页
export const messageList = (params: any) => {
    return request({
        url: '/app-api/system/notify-message/page',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};

//用户端获取未读消息数量
export const messageCountUnread = (params: any) => {
    return request({
        url: '/app-api/system/notify-message/user/count-unread',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};

//用户端更新所有未读消息为已读
export const messageAllRead = (params: any) => {
    return request({
        url: '/app-api/system/notify-message/user/all-read',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//商家入驻
export const merchantCreate = (params: any) => {
    return request({
        url: '/app-api/system/merchant/create',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
//医生入驻
export const doctorCreate = (params: any) => {
    return request({
        url: '/app-api/member/doctor/enter',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};

//获得商品收藏分页
export const favoriteLists = (params: any) => {
    return request({
        url: '/app-api/product/favorite/page',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
//获得未使用的优惠劵数量
export const getUnusedCount = (params: any) => {
    return request({
        url: '/app-api/promotion/coupon/get-unused-count',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};
